package com.common.entity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;


/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:15/8/9
 */
@MappedSuperclass
public abstract class BaseEntity extends IdEntity implements java.io.Serializable {

    @Column(name="createAt",nullable=false)
    private long createAt;//注册时间

    public BaseEntity(){
        createAt= System.currentTimeMillis();
    }

    public long getCreateAt() {
        return createAt;
    }

    public void setCreateAt(long createAt) {
        this.createAt = createAt;
    }
}
